<div class="portlet">
  <div class="portlet-header">
      <h1><%="#{t(".title")}: #{@general_news_letter.description}"%></h1>
  </div>

  <div class="portlet-content">

    <% form_tag general_news_letter_materials_path(@general_news_letter), :method => 'get' do %>
      <table style="border:0px">
        <tr>
          <th> <%= label_tag t('activerecord.attributes.material.title') %> </th>
          <th> <%= text_field_tag :search_title, params[:search_title] %> </th>
          <th> <%= submit_tag t('btn_search'), :name => nil %> </th>
        </tr>
      </table>
    <% end %>

    <div id="general_news_letter_materials_list">
      <%= render :partial => 'general_news_letter_materials_list' %>
    </div>

    <% if @general_news_letter.state != GeneralNewsLetter::STATE_ALREADY_SENT %>
      <div class="line-links">
        <div id='basic-modal-material_selector'>
          <a href='#' class='basic'><%=t('.btn_new_general_news_letter_material')%></a>
        </div>
      </div>
    <% end %>
  </div>

  <div class="portlet-footer">
  </div>
</div>

<div id="basic-modal-content-material_selector" style="display:none;">
  <%= render :partial=>'materials/selector_materials' %>
</div>